Welcome![Sign In][Sign Up]
Location:
Search - event class

Search list

[JSP/JavaMyTitleBar02

Description: MyTitleBar源代码,在Android定义Tab选项卡,实现了仿百度贴吧中的悬浮顶部和底部的标题栏效果,项目中含:源码+效果图+项目结构图,很不错的Android界面设计效果,代码中ISIBLE:0的意思是可见的 INVISIBILITY:4 意思是不可见的,但还占着原来的空间 GONE:8 意思是不可见的,不占用原来的布局空间。另外源码中还定义了许多功能实用的类和页面,比如:   MentionActivity.java 提醒Activity页面   MainActivity.java 主Activity程序入口类,在此定义了Tab选项卡标示符,单选按钮对象,消息提示文本对象,Tab按钮选中监听事件等,是程序主界面。   PersonInfoActivity.java 个人资料Activity页面-MyTitleBar source code in Android define Tab tab, achieved the title bar of the effect of imitation Baidu Post Bar suspended at the top and bottom of the project including: source+ renderings+ project structure diagram, a very nice Android interface design effect, the code ISIBLE: 0 mean visible INVISIBILITY: 4 means not visible, but the original space occupied GONE: 8 means are not visible, the original layout of the space is not occupied. Another source also defines a number of functional and practical classes and pages, such as: MentionActivity.java remind Activity page MainActivity.java Main Activity program entry class, defined in this Tab tab identifier, radio button objects, text objects news tips , Tab button to select the listening event, is the main program interface. PersonInfoActivity.java Profile Activity page
Platform: | Size: 4093952 | Author: rpudn24 | Hits:

[androidItemone

Description: Android实现选项卡滑动效果,具体来说是左右滑动的页面效果,主要靠切换页面事件监听器来实现,另外还有一个滑动菜单选项类也是挺重要的模块,你完全可以将这些模块用在其它的Android应用程序中,本例实现了在多个菜单中的TAB标签切换效果-Android realization tab sliding effect, specifically about the effect of the sliding pages, mainly by switching pages event listener to achieve, in addition to a menu option class is also very important module slide, you can use these modules in other Android application, in this case to achieve the TAB label multiple menu transition effects
Platform: | Size: 336896 | Author: epudn8 | Hits:

[androidjavafirework

Description: Java烟花特效代码,用鼠标点击浏览器中的面板,将出现五彩缤纷的烟花效果。要用到的Java知识点有:鼠标事件的监听,Graphics类和Thread类的应用。使用Graphics类:绘制烟花,使用Thread类:管理线程,使用Math类:产生随机数,使用Color类:设置颜色。   实现思路:Java模拟烟花效果,首先定义主线程的函数run()对一个烟花进行绘制。在函数run()中定义Graphics类的对象,通过程序中的算法来绘制烟花。然后实现烟花的缤纷闪烁效果,通过Thread类的Thread.currentThread().sleep()方法使当前线程睡眠,让用户欣赏到当前的绘制效果。最后实现人机交互,通过mousePressed(MouseEvent e)函数来实现对鼠标事件的监听,当按下鼠标时,产生一个新线程就可以看到一个新的烟花效果。-Java fireworks effects code, use the mouse to click on the browser panel, colorful fireworks effect will appear. To use the Java knowledge points are: listening, Graphics class and the Thread class application mouse events. Use the Graphics class: Draw fireworks, use the Thread class: Managing threads, use the Math class: generate random numbers, use the Color class: set the color. Realization of ideas: Java simulation fireworks effects, first define the function of the main thread run () on a fireworks draw. (As defined in the Graphics class object in the function run), to draw fireworks through the program algorithm. Then realize fireworks shimmering effect, (). Sleep () method makes the current thread to sleep through the Thread class Thread.currentThread, allowing users to enjoy the effects of the current drawing. Finally, to achieve human-computer interaction, through mousePressed (MouseEvent e) function to achieve the mouse event listener, when you press the mouse button to creat
Platform: | Size: 15360 | Author: rpudn62 | Hits:

[androidJavacaculator

Description: 使用Java制作计算器的实例,适合学习的Java源码下载。运用了Java2的图形界面技术和消息响应技术。通过图形界面技术,制作了计算器的用户界面。通过消息响应技术,实现响应用户的操作的功能,最终实现人机交互。用到的JAVA知识点有:窗口布局器GridLayout的应用,对按钮消息的监听和响应。   程序及注释   首先定义具有计算功能的类Calculator。在类Calculator中定义处理加减乘除运算的函数,分别命名为opAdd (),opSubtract(),opMultiply(),opDivide()。然后实现人机交互效果,要先定义实现用户界面类CalculatorGUI。通过Panel类的setLayout()函数进行用户界面的布局。此外,要通过actionPerformed(ActionEvent event))函数来实现对按钮事件的监听,并根据不同的按钮事件进行不同的运算。最后实现用户界面类与处理运算类的融合.,所以要在用户界面类(CalculatorGUI)中定义处理运算类(Calculator)的对象,这样,就完成了计算器的功能-Making use of Java calculator examples for learning Java source code download . Use of technology Java2 graphical interface and message response technology . Graphical interface technology , making the user interface of the calculator . By message response technology, features in response to user actions , and ultimately human-computer interaction . JAVA knowledge points used are: window layout is GridLayout applications for the button to listen and respond to the message . Procedures and Notes First class definition Calculator with calculating functions . Defined handler arithmetic operations in the class Calculator , named as opAdd (), opSubtract (), opMultiply (), opDivide (). Then realize the effect of human-computer interaction , the user interface must first define the implementation class CalculatorGUI. ( ) Function layout of the user interface by the Panel class setLayout. In addition, to be implemented on the button event listener through actionPerformed (ActionEvent event))
Platform: | Size: 18432 | Author: epudn10 | Hits:

[AI-NN-PRStateMachine

Description: 一个有限状态机的编程范例 StateMachine包 状态机管理 IStateMachine.as 状态机接口 MyEvent_Control.as 消息管理,状态管理 MyEvent_Single.as 单个事件 Total.as 实现了状态机接口(IStateMachine)的基类,将其理解为抽象类比较好 A.as 继承基类(Total)的状态机,这个才是真正可用的 B.as 同A Main.as 调用,以及启动 若要使用本状态机 前提: 1.你的基类名字叫basis.as 2.你继承基类的名字static.as 对应: 1.basis.as -- 相当于 Total.as 2.static.as -- 相当于 A.as 类功能: 参考"类说明.txt" 注: 1.管理类为静态类 使用“MyEvent_Control.istanceFun() ”来取到实例 消息部分-公开 -- //供外部调用的 发送消息 send() 状态机部分--公开 -- //绑定一个状态机 add_StateMachine(_idx) -- //开启状态机 Start_StateMachine(_modo:int=0,_idx=null) -- //状态更新 stateUpdate(_idx,str) 2.关于全局消息,和局部消息中 -- 使用 "e.sender" 来获取消息的发送者-A state machine programming paradigm StateMachine package management IStateMachine.as state machine interfaces MyEvent_Control.as message management finite state machine, state management MyEvent_Single.as single event Total.as implements a state machine interfaces (IStateMachine) base class, be understood as An abstract class is better A.as inherit the base class (Total) state machine, this is the real available B.as with A Main.as calls, and start to use the state machine premise: a name of your base class You inherit called basis.as 2 corresponds to the base class name static.as:. 1.basis.as- equivalent Total.as 2.static.as- functional equivalent A.as: Refer to " class description txt " Note: 1 static class management class to use." MyEvent_Control.istanceFun () " to get to the instance of the message part- publicly-// for external calls to send a message send () state machine part- publicly-// bind a state machine add_StateMachine (_idx)-// open state machine Star
Platform: | Size: 17408 | Author: 可了 | Hits:

[JSP/JavaSlidingDemoAndroid

Description: android手势左右与按钮混合触发滑动效果实现,通过不断的移动布局,形成动画效果。布局移动参考了SlidingDrawer,每次移动的时间间隔,20ms,当前时间是SystemClock的时间,平衡总量和每次平移的距离在代码中请自行设置,移动布局,偏移量为offsetX,编写过程中要注意,一定要将触屏事件交给手势识别类去处理(自己处理会很麻烦的)。-android gesture left button triggers mixed with sliding effect achieved through continuous movement layout, form animation. Layout of the mobile reference SlidingDrawer, each moving interval, 20ms, the current time is SystemClock time, the balance amount and distance of each pan in the code at your own settings, mobile layout, offset offsetX, the preparation process To note, be sure to touch gesture recognition event to the class to deal with (deal with their own would be very troublesome).
Platform: | Size: 1175552 | Author: 杜小东 | Hits:

[androidMyDict

Description: Android开发的简单的单词记录本,主要涉及选项菜单选中事件处理,SQLite数据库的操作,本程序能够实现单词的添加与查询,主要涉及到选项菜单选中事件处理,SQLite数据库的操作,SimpleAdapter类的使用、页面之间的切换。-Android development of simple word book, mainly related to the options menu select event handling, SQLite database operation, this procedure can achieve add and query words, mainly involves in the options menu selected event handling, SQLite database operations, SimpleAdapter class use, switching between pages.
Platform: | Size: 740352 | Author: David | Hits:

[Shell apiProject1

Description: 使用无窗口透明控件,好处是控件不是从窗口类继承而来的,可以节省一些内存资源,难点是鼠标控制和坐标计算,缺点是无法直接响应键盘事件。而且,需要注意的是,在Paint事件里,坐标是从(0,0)开始的,而在其它地方,坐标是相对于容器的。缺点是设计时,无法用鼠标点选控件(只能用键盘移动),微软公司也在MSDN里说了这是一个BUG,但至今未解决。 好了,废话俺不说了,打开VB6,新建一个“标准 EXE”,然后添加一个用户控件,把控件的BackStyle属性设置为“透明”,把Windowless属性设置为“True”,再把俺的代码复制过去,一个美观大方的透明浮动按钮便完成了。用户还可以设置控件的Caption属性和Picture属性进一步美化。如有不解之处,可与俺联系:-Use windowless transparent control, the advantage is control is not inherited from the window class, you can save some memory resources, the difficulty is the mouse control and coordinate calculation, the disadvantage is not directly respond to keyboard events. Also, note that in the Paint event, the coordinates are from (0,0), while in other places, the coordinates are relative to the container. The disadvantage is that the design, you can not use the mouse to click on the controls (only use the keyboard to move), MSDN, Microsoft also says that this is a BUG, but has yet to be resolved. Well, I do not say nonsense, open VB6, create a new "Standard EXE", and then add a user control, the control s BackStyle property is set to "transparent", the Windowless property to "True", then I code copy the past, a nice transparent floating button is complete. Users can also set the Caption property and further beautify the Picture property of the control. If incomprehension, and I can cont
Platform: | Size: 3072 | Author: hanxu | Hits:

[Windows DevelopListViewditor

Description: ListView自定义可编辑列的VB源码下载。引用类 ListView 自定义可编辑列,包括有自定义可编辑列 类 的事件,初始化 自定义可编辑列 类,并指定 ListView 控件和 编辑文本框控件,初始化列表框,便于演示,单击窗体,显示测试窗体!-VB source ListView custom editable columns downloads. ListView custom reference class can be edited out, including custom class event editable columns, the column can be edited to customize initialization class and specify the ListView control and edit text box control, initializes the list box for easy presentation, click the form, Display Test form!
Platform: | Size: 18432 | Author: ipudn35 | Hits:

[Linux-UnixKXmlParser

Description: A simple, pull based XML parser. This classe replaces the kXML 1 XmlParser class and the corresponding event classes.
Platform: | Size: 9216 | Author: ginmangwai | Hits:

[Linux-UnixServerRequestHandler

Description: The ServerRequestHandler class defines an event listener that will respond to OBEX requests made to the server.
Platform: | Size: 2048 | Author: rengfangfo | Hits:

[Linux-UnixToTextSAXHandler

Description: This class converts SAX-like event to SAX events for xsl:output method "text".
Platform: | Size: 2048 | Author: qengzimi | Hits:

[MiddleWareCTP-COM-interfaces-package

Description: CTP 接口COM封装使用指南 盈佳发布了一个基于COM标准的CTP-API接口封装,通过这个COM接口,用户可以利用任何支持COM的语言来接入CTP;该COM组件在内部进行仓位和资金的自动计算,并对用户屏蔽了上期所的平今和平昨的差别(优先平今),对用户非常友好。 1.1 COM包构成 1.2 COM注册 1.3 COM接口方法 1.4 COM触发事件 1.5 COM使用示例 1.5.1 Excel示例 1.5.2 VB6.0示例 1.5.3 VC6.0示例 通过这个类可以创建COM对象的实例,并监听COM所发出的事件(在事件方法中return S_OK之前添加自己处理逻辑即可)。-CTP Interface COM packaged Guide EACAN released a COM-based standard CTP-API interface package, through the COM interface, the user can use any language that supports COM to access CTP the COM component is automatically calculated internally and capital positions, and shields the user the difference in the level of the current peace yesterday (priority level today), a very user-friendly. 1.1 COM package constitutes 1.2 COM registration 1.3 COM interface methods 1.4 COM trigger event 1.5 COM use examples 1.5.1 Excel Example 1.5.2 VB6.0 example 1.5.3 VC6.0 examples You can create an instance of this class through a COM object and listen for events COM issued (in the event before the return S_OK method to add logic to deal with their own).
Platform: | Size: 451584 | Author: 光辉 | Hits:

[JSP/Javajcomboboxdemo

Description: Java实现仿写的IE地址栏下拉记录功能,将使用javax.swing 包中的JComboBox 类来实现这一功能。这里使用JLabel 和JComboBox 两个组件来构建地址栏。其中,JComboBox 对象的属性设为可编辑(默认是不可编辑的),另外还要实现JComboBox 的ActionEvent 事件处理程序。由于本例中使用JComboBox 默认的编辑器,因此不用实现javax.swing.ComboBoxEditor 创建自定义的编辑器类-Java implementation parodies of IE address bar drop-down record, will use JComboBox class javax.swing package to achieve this functionality. Used here to build the address bar JLabel and JComboBox two components. Which, JComboBox object editable property is set (default is not editable), while also realize JComboBox s ActionEvent event handler. Since in this case the use of JComboBox default editor, so do not realize javax.swing.ComboBoxEditor editor to create custom classes
Platform: | Size: 14336 | Author: bpudn69 | Hits:

[JSP/JavaSlidingDemo

Description: android手势左右与按钮混合触发滑动效果实现,通过不断的移动布局,形成动画效果。布局移动参考了SlidingDrawer,每次移动的时间间隔,20ms,当前时间是SystemClock的时间,平衡总量和每次平移的距离在代码中请自行设置,移动布局,偏移量为offsetX,编写过程中要注意,一定要将触屏事件交给手势识别类去处理(自己处理会很麻烦的)-android gesture left button triggers mixed with sliding effect achieved through continuous movement layout, form animation. Layout of the mobile reference SlidingDrawer, each movement interval, 20ms, the current time is SystemClock time, the balance amount and distance of each pan in the code at your own settings, mobile layout, offset offsetX, the preparation process to note, be sure to touch gesture recognition event to the class to deal with (deal with their own would be very troublesome)
Platform: | Size: 1174528 | Author: bpudn72 | Hits:

[Linux-UnixWorkerThread

Description: Simple utility class used only to mark methods that are not executed on the UI thread (or Event Dispatch Thread in Swing AWT.) This annotation s sole purpose is to help reading the source code. It has no additional effect.
Platform: | Size: 2048 | Author: nuxaqing | Hits:

[JSP/Javalab4

Description: 1.定义学生Bean,按照JavaBean设计规范,命名get和set方法. 2. Bean的定制事件验证实验 3. Bean属性的绑定属性验证实验 4. Bean属性的约束属性验证实验 *5.BeanInfo类 -1 Definitions students Bean, in accordance with the design specifications JavaBean naming get and set methods. 2. Bean custom event validation experiments 3 binding properties Bean attribute verification experiment 4 Constraints property validation experiments Bean property * 5.BeanInfo class
Platform: | Size: 12288 | Author: 黄瑜琳 | Hits:

[Linux-UnixMonkeyEventQueue

Description: class for keeping a monkey event queue.
Platform: | Size: 1024 | Author: jaobuxe | Hits:

[JSP/JavaUSEFTPAPPLET

Description: 摘要:Java源码,网络相关,FTP Java编写实现一个FTP客户端程序,通过该客户端连接指定的服务器。useFtpApplet 类继承了Applet 类,在init()中实现的是此Applet 的初始化,设置布局和背景,建立文本、标签和文本域。   Connect()方法使用主机地址、用户名和密码作为参数,建立与主机的连接。使用new 生成新的FtpClient 类实例,使用login()方法登录FTP 服务器,调用showFileContents()方法显示文件内容。   Stop()方法使用FtpClient 对象的closeServer()方法关闭服务器连接。   Action()方法监听按钮,并对发生的按钮事件进行处理,通过使用判定语句evt.target == BtnConn来跟踪用户是否单击连接按钮,如果发生单击事件,则通过调用connect()方法来进行连接。如果evt.target == BtnClose 则调用stop()方法来断开连接。   SendFile()方法实现的是上载文件的功能。ShowFileContents()方法显示文件内容。在main()方法中生成此类实例,初始化线程,启动线程。-Summary: Java source code, network-related, FTP Java prepared to achieve an FTP client program, through which clients connect to the specified server. useFtpApplet class inherits Applet class, init () is initialized in the realization of this Applet, set the layout and background, the establishment of the text, labels and text fields. Connect () method uses the host address, user name and password as parameters to establish a connection with the host. FtpClient using the new generation of new class instance, use login () method FTP server, call showFileContents () method to display the contents of the file. Stop () method uses FtpClient object closeServer () method to close the server connection. Action () method listening button, and button events are processed through the use of judgment statement evt.target == BtnConn to track whether the user click the Connect button, if you click an event occurs, by calling the connect () method to connection. If evt.target == BtnClose calling
Platform: | Size: 8192 | Author: 郭涛 | Hits:

[Linux-UnixBluetoothEventRedirector

Description: BluetoothEventRedirector receives broadcasts and callbacks from the Bluetooth API and dispatches the event on the UI thread to the right class in the Settings.
Platform: | Size: 2048 | Author: zaxueri | Hits:
« 1 2 ... 6 7 8 9 10 1112 13 »

CodeBus www.codebus.net